package com.cy.ppj.service.productannouncement;

import com.cy.ppj.model.PageBean;
import com.cy.ppj.model.domian.productannouncement.ProductAnnouncement;
import com.cy.ppj.model.query.productannouncement.ProductAnnouncementAdminQuery;
import com.cy.ppj.model.query.productannouncement.ProductAnnouncementQuery;
import com.cy.ppj.model.vo.admin.productannouncement.ProductAnnouncementAdminVO;
import com.cy.ppj.model.vo.front.productannouncement.ProductAnnouncementVO;

/**
 * 产品与公告service
 *
 * @author: tanyilin
 * @create: 2018年10月15日 下午5:18:52
 */
public interface ProductAnnouncementService {

	/**
	 * 新增
	 * 
	 * @param productAnnouncement
	 */
	void addProductAnnouncement(ProductAnnouncement productAnnouncement);
	
	/**
	 * 编辑更新
	 * 
	 * @param productAnnouncement
	 */
	void updateProductAnnouncement(ProductAnnouncement productAnnouncement);

	/**
	 * 后台-产品与公告列表，分页
	 * 
	 * @param query
	 * @return
	 */
	PageBean<ProductAnnouncementAdminVO> selectProductAnnouncementAdmin(ProductAnnouncementAdminQuery query);

	/**
	 * 上下架
	 * 
	 * @param productAnnouncement
	 */
	void updateStatus(ProductAnnouncement productAnnouncement);
	
	/**
	 * 前台-产品与公告列表，分页
	 * 
	 * @param query
	 * @return
	 */
	PageBean<ProductAnnouncementVO> selectProductAnnouncement(ProductAnnouncementQuery query);
}
